package test2.hash;

public class Node<T> {
	
	private T node;
	private int index;
	public Node() {
		super();
	}
	public Node(T node, int index) {
		super();
		this.node = node;
		this.index = index;
	}
	public T getNode() {
		return node;
	}
	public void setNode(T node) {
		this.node = node;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public String getKey() {
		return node + (index + "");
	}
	@Override
	public String toString() {
		return "Node [node=" + node + ", index=" + index + "]";
	}

}
